home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Online
/
Epic4
/
share
/
epic
/
help
/
6_functions
/
count
< prev
next >
Wrap
Text File
|
2001-03-21
|
508b
|
20 lines
Synopsis:
$count(<string> <text>)
Technical:
This function counts how many times <string> appears in the text specified
by <text>, possibly overlapping.
Practical:
The uses for a function like this are unlimited. One may be to count how
many times a person's nick appears in a public message, for logging
purposes.
Returns:
number of times <string> is found in <text>
Examples:
$count(. one.two.three) returns 2
$count(zz zzzz) returns 3